#include <RCSwitch.h>
// 娴嬭瘯鐢╨ed
#define led 8

// 433鎺ユ敹绔�
//#define pinRec433 5

// 433鍙戝皠绔�
#define pinSen433 0

// 433鎺ュ彈閬ユ帶瀵硅薄
//RCSwitch switch433Rec = RCSwitch();

// 433鍙戦�侀仴鎺у璞�
RCSwitch switch433Sen = RCSwitch();

 
void setup()
{
    Serial.begin(9600);
    //switch433Rec.enableReceive(pinRec433);
    switch433Sen.enableTransmit(pinSen433);
}
  

void loop()
{
//    switch433Sen.send(1531148, 24);
//    Serial.println("Send 433 Code: 2499600 厅离卧室近吸顶灯开");
//    delay(5000);
//
//    switch433Sen.send(1531139, 24);
//    Serial.println("Send 433 Code: 5529536 厅离卧室近吸顶灯关");
//    delay(5000);

       switch433Sen.send(1531148, 24);

          delay(1000);
          switch433Sen.send(1531148, 24);
     
          delay(1000);
          switch433Sen.send(1531148, 24);
        
          delay(1000);
  /* Same switch as above, but using binary code */
  switch433Sen.send("000101110101110100001100");
  delay(1000);  
  switch433Sen.send("000101110101110100001100");
  delay(1000);
}
